package ProjectPanel;

import javax.swing.JPanel;

import java.awt.Dimension;
import java.awt.GridLayout;

import javax.swing.JTextField;

import java.awt.GridBagLayout;

import javax.swing.JLabel;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JTable;
import javax.swing.plaf.basic.DefaultMenuLayout;
import javax.swing.table.DefaultTableModel;
import java.awt.BorderLayout;
import javax.swing.JButton;

public class SubjectSearch extends JPanel{
	private JTable table;
	public SubjectSearch() {
		setPreferredSize(new Dimension(824, 668));
		setLayout(new GridLayout(20, 6, 0, 0));
		
		JPanel panel_1 = new JPanel();
		add(panel_1);
		panel_1.setLayout(null);
		
		JLabel lblNewLabel = new JLabel("과목 번호");
		lblNewLabel.setBounds(38, 10, 57, 15);
		panel_1.add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("과목 명");
		lblNewLabel_1.setBounds(149, 10, 57, 15);
		panel_1.add(lblNewLabel_1);
		
		JLabel lblNewLabel_2 = new JLabel("과목 유형 번호");
		lblNewLabel_2.setBounds(265, 10, 93, 15);
		panel_1.add(lblNewLabel_2);
		
		JLabel lblNewLabel_3 = new JLabel("과목 개요");
		lblNewLabel_3.setBounds(417, 10, 75, 15);
		panel_1.add(lblNewLabel_3);
		
		JLabel lblNewLabel_4 = new JLabel("배정 학점");
		lblNewLabel_4.setBounds(552, 10, 57, 15);
		panel_1.add(lblNewLabel_4);
		
		JLabel lblNewLabel_5 = new JLabel("교수 번호");
		lblNewLabel_5.setBounds(692, 10, 57, 15);
		panel_1.add(lblNewLabel_5);
		
		JPanel panel = new JPanel();
		add(panel);
		panel.setLayout(null);
		
		JLabel label_1 = new JLabel("배정 학점 출력");
		label_1.setBounds(552, 10, 85, 15);
		panel.add(label_1);
		
		JLabel label_2 = new JLabel("과목 개요 출력");
		label_2.setBounds(417, 10, 80, 15);
		panel.add(label_2);
		
		JLabel label_3 = new JLabel("과목 유형 번호 출력");
		label_3.setBounds(264, 10, 114, 15);
		panel.add(label_3);
		
		JLabel label_4 = new JLabel("과목 명 출력");
		label_4.setBounds(148, 10, 80, 15);
		panel.add(label_4);
		
		JLabel label_5 = new JLabel("과목 번호 출력");
		label_5.setBounds(22, 10, 85, 15);
		panel.add(label_5);
		
		JLabel label = new JLabel("교수 번호 출력");
		label.setBounds(688, 10, 85, 15);
		panel.add(label);
		
		table = new JTable();
		add(table);
		table.setModel(new DefaultTableModel(
			new Object[][] {
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
			},
			new String[] {
				"\uACFC\uBAA9\uBA85", "\uB2F4\uB2F9\uAD50\uC218", "\uCD1D\uC810", "New column", "New column", "New column"
			}
		));
	}
}
